package day11HomeWork;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo2 {
    public static void main(String[] args) {
        Collection c = new ArrayList<>();
        c.add(new Point(1,2));
        c.add(new Point(2,3));
        c.add(new Point(4,5));
        c.add(new Point(6,7));
        c.add(new Point(1,2));
        Point p = new Point(1,2);
        boolean a = c.contains(p);
        System.out.println(a);

        c.remove(p);
        System.out.println(c);



    }
}
